import { Component, OnInit } from '@angular/core';
import {Location} from '@angular/common'
import {ActivatedRoute, Router} from "@angular/router";
import { GetDataService } from '../../../../share/services/get-data.service';

@Component({
  selector: 'app-effience-overview',
  templateUrl: './effience-overview.component.html',
  styleUrls: ['./effience-overview.component.css']
})
export class EffienceOverviewComponent implements OnInit {
  constructor(
  	private location:Location,
  	private router: Router,
    private getDataService:GetDataService,
  ) { }
  public sljData;
  ngOnInit() {
    this.fillTable();
  }
  fillTable() {
    this.getDataService.getShuiLunJiParam().subscribe(
      data => {
        this.sljData = data;
      }
    )
  }
  navigator() {
    this.router.navigate(['/pages/performance-analysis/deviation-overview'])
  }
  public goBack(flag?:boolean){
    if(flag){
      this.location.back()
    }
    else {
      this.router.navigate(['/pages/home'])
    }
  }
}
